package com.songcha.module_login.ui.activity.login

import com.songcha.library_business.mvvm.BusinessRepository
import com.songcha.library_network.bean.BaseBean
import com.songcha.library_network.bean.BaseStringDataBean
import com.songcha.module_login.api.LoginApiManager
import io.reactivex.Observable


class LoginRepository:BusinessRepository() {

    fun sendVerifyCode(phone:String): Observable<BaseBean> {
        return LoginApiManager.api.sendVerifyCode(phone)
    }

    fun login(phone:String,code:String): Observable<BaseStringDataBean> {
        return LoginApiManager.api.login(phone,code)
    }

    fun wxlogin(code:String): Observable<BaseStringDataBean> {
        return LoginApiManager.api.wxlogin(code)
    }

}